package com.py.credit.service.impl;

import com.py.credit.dao.AuthorizeLogDao;
import com.py.credit.entity.AuthorizeLog;
import com.py.credit.service.AuthorizeLogService;
import com.py.framework.core.common.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author YaoS
 * @date 2019-05-21 10:19
 */
@Service
public class AuthorizeLogServiceImpl implements AuthorizeLogService {

    @Autowired
    AuthorizeLogDao logDao;

    @Override
    public void addLog(AuthorizeLog log) {
        logDao.addLog(log);
    }

    @Override
    public List<AuthorizeLog> selectLogListForPage(String dept, String model, String company, Page page) {
        return logDao.selectLogListForPage(dept, model, company, page);
    }

    @Override
    public AuthorizeLog selectLogDetail(String id) {
        return logDao.selectLogDetail(id);
    }
}
